package com.chuangxiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("biz_invoice")
public class Invoice {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private Long settlementId;
    private Long companyId;
    private String invoiceNo;
    private String invoiceCode;
    private BigDecimal amount;
    private String invoiceType; // 增值税专用发票、增值税普通发票
    private String invoiceContent;
    private String taxNumber;
    private String companyAddress;
    private String companyPhone;
    private String bankName;
    private String bankAccount;
    
    private Integer status; // 0: 待开具 1: 已开具 2: 已邮寄
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
}